package top.drose.utils;

public class ColorOut {

    //后缀,用来将文本颜色还原为默认值
    final static String RESET = "\u001B[0m";
    //下面三个是前缀
    final static String BLACK = "\u001B[30m";
    final static String RED = "\u001B[31m";
    final static String GREEN = "\u001B[32m";
    //输出格式为str=RED + "这是红色的文字" + RESET


    public static void printlnRed(String s){
        System.out.println(RED + s + RESET);
    }
    public static void printlnGreen(String s){
        System.out.println(GREEN + s + RESET);
    }
}
